package com.cc.logc.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xukang
 * @date 2021-02-04 10:16
 */
@RestController
@Slf4j
@RequestMapping("log")
public class LogcController {
    @RequestMapping("{num}")
    public String log(@PathVariable String num) {
        log.error("{}", num);
        log.trace("======trace");
        log.debug("======debug");
        log.info("======info");
        log.warn("======warn");
        log.error("======error");
        return num;

    }
}
